//
//  GetInfo.h
//  Bibliotecha
//
//  Created by Jaime Garnica on 4/23/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "LibraryController.h"

@interface GetInfo : NSObject {
	
	IBOutlet NSTextField *titleField;
	IBOutlet NSTextField *authorField;
	IBOutlet NSTextField *typeField;
	IBOutlet NSTextField *categoryField;
	IBOutlet NSTextField *subjectField;
	IBOutlet NSTextField *urlField;
	IBOutlet NSTextField *pathField;
	IBOutlet NSTextField *yearField;
	IBOutlet NSWindow *editInfo;
	
	IBOutlet NSTextField *multTitleField;
	IBOutlet NSButton *titleCheck;
	IBOutlet NSTextField *multAuthorField;
	IBOutlet NSButton *authorCheck;
	IBOutlet NSTextField *multTypeField;
	IBOutlet NSButton *typeCheck;
	IBOutlet NSTextField *multCategoryField;
	IBOutlet NSButton *categoryCheck;
	IBOutlet NSTextField *multSubjectField;
	IBOutlet NSButton *subjectCheck;
	IBOutlet NSTextField *multYearField;
	IBOutlet NSButton *yearCheck;
	IBOutlet NSWindow *multEditInfo;
	
	
	LibraryController *theLibrary;
	NSString *oldBook;
	NSArray *oldBooks;
}

#pragma mark Accessor Methods

-(NSString *)oldBook;
-(void) setOldBook: (NSString *)aBook;

-(NSArray *)oldBooks;
-(void) setOldBooks: (NSArray *)books;

#pragma mark Received Actions

-(IBAction) updateBook:(id)sender;

-(IBAction) discardChanges:(id)sender;

#pragma mark Methods

-(void) initWithLibrary:(LibraryController *)aLibrary andBook:(NSString *)aBook;

-(void) initWithLibrary:(LibraryController *)aLibrary andBooks:(NSArray *)books;

@end
